package com.ark.cloud.java.persistence.service.impl;


import com.ark.cloud.java.persistence.entity.CommunicationEvent;
import com.ark.cloud.java.persistence.mapper.CommunicationEventMapper;
import com.ark.cloud.java.persistence.service.CommunicationEventService;
import com.ark.cloud.java.persistence.utils.UUIDUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author fukun
 * @create 2021/9/1  下午3:41
 * @description
 */
@Service
public class CommunicationServiceImpl implements CommunicationEventService {
    @Autowired
    CommunicationEventMapper communicationEventDao;

    @Override
    public void saveCommunicationEventInfo(CommunicationEvent communicationEvent) {

        // 设置UUID
        communicationEvent.setId(UUIDUtil.next());
        System.out.println("communicationEvent:"+communicationEvent);

        communicationEventDao.insert(communicationEvent);
    }
}
